package com.briup.demo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

//加了这个注解之后，这个类在编译的时候，会自动生成getter、setter、equals、hashcode、toString方法
//@Data不会生成构造器
@NoArgsConstructor//无参构造器
@AllArgsConstructor//全参构造器
@Data
//@Getter
//@Setter
//@ToString
//@EqualsAndHashCode
public class User {
    private Integer id;
    private String username;
    private String password;
    private String phone;
    private String avatar;
    //0男 1女
    private Short gender;
    //0正常1禁用
    private Short status;
    private LocalDate birthday;
    private LocalDateTime registerTime;


}
